package com.ydgk.service.impl;

import com.ydgk.bean.Admin;
import com.ydgk.dao.AdminMapper;
import com.ydgk.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    private AdminMapper adminMapper;

    public Admin findById(Integer aid) {
        return adminMapper.findById(aid);
    }

    public void updateById(Admin admin) {
        adminMapper.updateById(admin);
    }
}
